package com.hqq.mybatisTest.dao;

import com.hqq.mybatisTest.domain.Student;

import java.util.List;

/**
 * 接口操作student表
 */
public interface studentDao {

    //查询方法
    public List<Student> selectStudent();

    //插入方法
    public int insertStudent(Student student);

    //P33
    int countStudent();

    //测试动态sqlp39
    List<Student> selectStudentIf(Student student);

    List<Student> selectStudentWhere(Student student);

    List<Student> selectForeach1(List<Integer> list);
    List<Student> selectForeach2(List<Student> list);

    //使用pageHelper进行分页数据
    List<Student> selectPage();

}
